<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $html->meta('icon');
		echo $this->Html->css('reset');
		echo $this->Html->css('layout');
                echo $this->Html->css('global');
		echo $this->Html->css('public');
		echo $this->Html->css('lib/jquery.jgrowl.css');
                
		echo $this->Html->script('jquery-1.4.1.min');
		echo $this->Html->script('validate');

		echo $scripts_for_layout;
	?>
</head>
<body>
	<div id="container">
            <div id="wrap_header">
		<div id="header" class="clearfix">
                    <div id="bayonpage_logo">
                        <?php echo $this->Html->image('frontend/bayonpage.png', array('url' => '/'))?>
                    </div>
                    <div id="user_signin">
                        <?php
                            //user not yet login and we will view login form at bottom
                             if(isset($home) && $home == true){
                                echo $this->element('public/login_form');
                             }
                         ?>
                    </div>
			
		</div>
            </div>
		<div class="container_user">
			<?php echo $content_for_layout; ?>
		</div>
		<div id="footer">
			<?php echo $this->Html->link(
					$this->Html->image('cake.power.gif', array('alt'=> __('CakePHP: the rapid development php framework', true), 'border' => '0')),
					'http://www.cakephp.org/',
					array('target' => '_blank', 'escape' => false)
				);
			?>
		</div>
	</div>
	<?php echo $this->Js->writeBuffer(); ?>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>